<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0041)http://www.dreamfabric.com/sms/hello.html -->
<HTML><HEAD><TITLE>Message "hellohello" coded into octets</TITLE>
<META http-equiv=Content-Type content="text/html; charset=windows-1252">
<META content="MSHTML 5.50.4807.2300" name=GENERATOR></HEAD>
<BODY>
<H2>Coding 7-bit data (septets) into octets</H2>The message "hellohello" 
consists of 10 characters, called septets when represented by 7 bits each. These 
septets need to be transformed into octets for the SMS transfer. <BR><BR>
<TABLE border=1>
  <TBODY>
  <TR>
    <TH>h</TH>
    <TH>e</TH>
    <TH>l</TH>
    <TH>l</TH>
    <TH>o</TH>
    <TH>h</TH>
    <TH>e</TH>
    <TH>l</TH>
    <TH>l</TH>
    <TH>o</TH></TR>
  <TR>
    <TD>104</TD>
    <TD>101</TD>
    <TD>108</TD>
    <TD>108</TD>
    <TD>111</TD>
    <TD>104</TD>
    <TD>101</TD>
    <TD>108</TD>
    <TD>108</TD>
    <TD>111</TD></TR>
  <TR>
    <TD>1101000</TD>
    <TD>1100101</TD>
    <TD>1101100</TD>
    <TD>1101100</TD>
    <TD>1101111</TD>
    <TD>1101000</TD>
    <TD>1100101</TD>
    <TD>1101100</TD>
    <TD>1101100</TD>
    <TD>1101111</TD></TR>
  <TR>
    <TD>
      <TABLE>
        <TBODY>
        <TR>
          <TD>1101000</TD>
          <TD></TD></TR></TBODY></TABLE></TD>
    <TD>
      <TABLE>
        <TBODY>
        <TR>
          <TD>110010</TD>
          <TD bgColor=yellow>1</TD></TR></TBODY></TABLE></TD>
    <TD>
      <TABLE>
        <TBODY>
        <TR>
          <TD>11011</TD>
          <TD bgColor=yellow>00</TD></TR></TBODY></TABLE></TD>
    <TD>
      <TABLE>
        <TBODY>
        <TR>
          <TD>1101</TD>
          <TD bgColor=yellow>100</TD></TR></TBODY></TABLE></TD>
    <TD>
      <TABLE>
        <TBODY>
        <TR>
          <TD>110</TD>
          <TD bgColor=yellow>1111</TD></TR></TBODY></TABLE></TD>
    <TD>
      <TABLE>
        <TBODY>
        <TR>
          <TD>11</TD>
          <TD bgColor=yellow>01000</TD></TR></TBODY></TABLE></TD>
    <TD>
      <TABLE>
        <TBODY>
        <TR>
          <TD>1</TD>
          <TD bgColor=yellow>100101</TD></TR></TBODY></TABLE></TD>
    <TD>
      <TABLE>
        <TBODY>
        <TR>
          <TD></TD>
          <TD bgColor=yellow>1101100</TD></TR></TBODY></TABLE></TD>
    <TD>
      <TABLE>
        <TBODY>
        <TR>
          <TD>1101100</TD>
          <TD></TD></TR></TBODY></TABLE></TD>
    <TD>
      <TABLE>
        <TBODY>
        <TR>
          <TD>110111</TD>
          <TD bgColor=yellow>1</TD></TR></TBODY></TABLE></TD></TR>
  <TR></TR>
  <TR></TR></TBODY></TABLE><BR>The first septet (h) is turned into an octet by 
adding the rightmost bit of the second septet. This bit is inserted to the left 
which yields 1 + 1101000 = 11101000 ("E8"). The rightmost bit of the second 
character is then consumed, so the second character (septet) needs two bits 
(yellow) of the third character to make an 8bit octet. This process goes on and 
on yielding the following octets: <BR><BR>
<TABLE border=1>
  <TBODY>
  <TR>
    <TD>
      <TABLE>
        <TBODY>
        <TR>
          <TD bgColor=yellow>1</TD>
          <TD>1101000</TD></TR></TBODY></TABLE></TD>
    <TD>
      <TABLE>
        <TBODY>
        <TR>
          <TD bgColor=yellow>00</TD>
          <TD>110010</TD></TR></TBODY></TABLE></TD>
    <TD>
      <TABLE>
        <TBODY>
        <TR>
          <TD bgColor=yellow>100</TD>
          <TD>11011</TD></TR></TBODY></TABLE></TD>
    <TD>
      <TABLE>
        <TBODY>
        <TR>
          <TD bgColor=yellow>1111</TD>
          <TD>1101</TD></TR></TBODY></TABLE></TD>
    <TD>
      <TABLE>
        <TBODY>
        <TR>
          <TD bgColor=yellow>01000</TD>
          <TD>110</TD></TR></TBODY></TABLE></TD>
    <TD>
      <TABLE>
        <TBODY>
        <TR>
          <TD bgColor=yellow>100101</TD>
          <TD>11</TD></TR></TBODY></TABLE></TD>
    <TD>
      <TABLE>
        <TBODY>
        <TR>
          <TD bgColor=yellow>1101100</TD>
          <TD>1</TD></TR></TBODY></TABLE></TD>
    <TD>
      <TABLE>
        <TBODY>
        <TR>
          <TD></TD>
          <TD></TD></TR></TBODY></TABLE></TD>
    <TD>
      <TABLE>
        <TBODY>
        <TR>
          <TD bgColor=yellow>1</TD>
          <TD>1101100</TD></TR></TBODY></TABLE></TD>
    <TD>
      <TABLE>
        <TBODY>
        <TR>
          <TD></TD>
          <TD></TD></TR></TBODY></TABLE>110111</TD></TR>
  <TR>
    <TD>E8</TD>
    <TD>32</TD>
    <TD>9B</TD>
    <TD>FD</TD>
    <TD>46</TD>
    <TD>97</TD>
    <TD>D9</TD>
    <TD>
      <TABLE>
        <TBODY>
        <TR>
          <TD></TD>
          <TD></TD></TR></TBODY></TABLE></TD>
    <TD>EC</TD>
    <TD>37</TD></TR></TBODY></TABLE><BR>The 9 octets from "hellohello" are E8 32 9B 
FD 46 97 D9 EC 37 </BODY></HTML>
